{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-openai/json-schema/microsoft-azure-openai-open-ai-eval-run-schema.json",
  "title": "EvalRun",
  "description": "A schema representing an evaluation run.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-openai-v1-openapi.yml#/components/schemas/OpenAI.EvalRun",
  "type": "object",
  "required": [
    "object",
    "id",
    "eval_id",
    "status",
    "model",
    "name",
    "created_at",
    "report_url",
    "result_counts",
    "per_model_usage",
    "per_testing_criteria_results",
    "data_source",
    "metadata",
    "error"
  ],
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "eval.run"
      ],
      "description": "The type of the object. Always \"eval.run\".",
      "x-stainless-const": true,
      "default": "eval.run"
    },
    "id": {
      "type": "string",
      "description": "Unique identifier for the evaluation run."
    },
    "eval_id": {
      "type": "string",
      "description": "The identifier of the associated evaluation."
    },
    "status": {
      "type": "string",
      "description": "The status of the evaluation run."
    },
    "model": {
      "type": "string",
      "description": "The model that is evaluated, if applicable."
    },
    "name": {
      "type": "string",
      "description": "The name of the evaluation run."
    },
    "created_at": {
      "type": "integer",
      "format": "unixtime",
      "description": "Unix timestamp (in seconds) when the evaluation run was created."
    },
    "report_url": {
      "type": "string",
      "format": "uri",
      "description": "The URL to the rendered evaluation run report on the UI dashboard."
    },
    "result_counts": {
      "allOf": [
        {
          "$ref": "#/$defs/OpenAI.EvalRunResultCounts"
        }
      ],
      "description": "Counters summarizing the outcomes of the evaluation run."
    },
    "per_model_usage": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenAI.EvalRunPerModelUsage"
      },
      "description": "Usage statistics for each model during the evaluation run."
    },
    "per_testing_criteria_results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenAI.EvalRunPerTestingCriteriaResults"
      },
      "description": "Results per testing criteria applied during the evaluation run."
    },
    "data_source": {
      "oneOf": [
        {
          "$ref": "#/$defs/OpenAI.CreateEvalJsonlRunDataSource"
        },
        {
          "$ref": "#/$defs/OpenAI.CreateEvalCompletionsRunDataSource"
        },
        {
          "$ref": "#/$defs/OpenAI.CreateEvalResponsesRunDataSource"
        }
      ],
      "description": "Information about the run's data source."
    },
    "metadata": {
      "anyOf": [
        {
          "$ref": "#/$defs/OpenAI.Metadata"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "$ref": "#/$defs/OpenAI.EvalApiError"
    }
  },
  "x-oaiMeta": {
    "name": "The eval run object",
    "group": "evals"
  },
  "$defs": {
    "AzureCompletionsSamplingParams": {
      "type": "object",
      "properties": {
        "max_tokens": {
          "type": "integer",
          "format": "int32",
          "description": "The maximum number of tokens in the generated output."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams"
        }
      ],
      "description": "Sampling parameters for controlling the behavior of completions."
    },
    "AzureResponsesSamplingParams": {
      "type": "object",
      "properties": {
        "max_tokens": {
          "type": "integer",
          "format": "int32",
          "description": "The maximum number of tokens in the generated output."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/OpenAI.CreateEvalResponsesRunDataSourceSamplingParams"
        }
      ],
      "description": "Sampling parameters for controlling the behavior of responses."
    },
    "OpenAI.ChatCompletionTool": {
      "type": "object",
      "required": [
        "type",
        "function"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "function"
          ],
          "description": "The type of the tool. Currently, only `function` is supported.",
          "x-stainless-const": true
        },
        "function": {
          "$ref": "#/$defs/OpenAI.FunctionObject"
        }
      },
      "description": "A function tool that can be used to generate a response.",
      "title": "Function tool"
    },
    "OpenAI.CreateChatCompletionRequestResponseFormat": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/OpenAI.CreateChatCompletionRequestResponseFormatType"
        }
      },
      "description": "An object specifying the format that the model must output.\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).\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."
    },
    "OpenAI.CreateChatCompletionRequestResponseFormatType": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "enum": [
            "text",
            "json_schema",
            "json_object"
          ]
        }
      ]
    },
    "OpenAI.CreateEvalCompletionsRunDataSource": {
      "type": "object",
      "required": [
        "type",
        "source"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "completions"
          ],
          "description": "The type of run data source. Always `completions`.",
          "default": "completions"
        },
        "input_messages": {
          "oneOf": [
            {
              "$ref": "#/$defs/OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplate"
            },
            {
              "$ref": "#/$defs/OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReference"
            }
          ],
          "description": "Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie, `item.input_trajectory`), or a template with variable references to the `item` namespace."
        },
        "sampling_params": {
          "$ref": "#/$defs/AzureCompletionsSamplingParams"
        },
        "model": {
          "type": "string",
          "description": "The name of the model to use for generating completions (e.g. \"o3-mini\")."
        },
        "source": {
          "oneOf": [
            {
              "$ref": "#/$defs/OpenAI.EvalJsonlFileContentSource"
            },
            {
              "$ref": "#/$defs/OpenAI.EvalJsonlFileIdSource"
            },
            {
              "$ref": "#/$defs/OpenAI.EvalStoredCompletionsSource"
            }
          ],
          "description": "Determines what populates the `item` namespace in this run's data source."
        }
      },
      "description": "A CompletionsRunDataSource object describing a model sampling configuration.",
      "title": "CompletionsRunDataSource",
      "x-oaiMeta": {
        "name": "The completions data source object used to configure an individual run",
        "group": "eval runs"
      }
    },
    "OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReference": {
      "type": "object",
      "required": [
        "type",
        "item_reference"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "item_reference"
          ]
        },
        "item_reference": {
          "type": "string"
        }
      }
    },
    "OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplate": {
      "type": "object",
      "required": [
        "type",
        "template"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "template"
          ]
        },
        "template": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/OpenAI.EasyInputMessage"
              },
              {
                "$ref": "#/$defs/OpenAI.EvalItem"
              }
            ]
          }
        }
      }
    },
    "OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams": {
      "type": "object",
      "properties": {
        "reasoning_effort": {
          "allOf": [
            {
              "$ref": "#/$defs/OpenAI.ReasoningEffort"
            }
          ],
          "description": "Controls the level of reasoning effort applied during generation."
        },
        "temperature": {
          "type": "number",
          "description": "A higher temperature increases randomness in the outputs.",
          "default": 1
        },
        "max_completion_tokens": {
          "type": "integer"
        },
        "top_p": {
          "type": "number",
          "description": "An alternative to temperature for nucleus sampling; 1.0 includes all tokens.",
          "default": 1
        },
        "seed": {
          "type": "integer",
          "description": "A seed value initializes the randomness during sampling.",
          "default": 42
        },
        "response_format": {
          "oneOf": [
            {
              "$ref": "#/$defs/OpenAI.ResponseFormatText"
            },
            {
              "$ref": "#/$defs/OpenAI.ResponseFormatJsonSchema"
            },
            {
              "$ref": "#/$defs/OpenAI.ResponseFormatJsonObject"
            }
          ]
        },
        "tools": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OpenAI.ChatCompletionTool"
          }
        }
      }
    },
    "OpenAI.CreateEvalJsonlRunDataSource": {
      "type": "object",
      "required": [
        "type",
        "source"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "jsonl"
          ],
          "description": "The type of data source. Always `jsonl`.",
          "x-stainless-const": true,
          "default": "jsonl"
        },
        "source": {
          "oneOf": [
            {
              "$ref": "#/$defs/OpenAI.EvalJsonlFileContentSource"
            },
            {
              "$ref": "#/$defs/OpenAI.EvalJsonlFileIdSource"
            }
          ],
          "description": "Determines what populates the `item` namespace in the data source."
        }
      },
      "description": "A JsonlRunDataSource object with that specifies a JSONL file that matches the eval",
      "title": "JsonlRunDataSource",
      "x-oaiMeta": {
        "name": "The file data source object for the eval run configuration",
        "group": "evals"
      }
    },
    "OpenAI.CreateEvalResponsesRunDataSource": {
      "type": "object",
      "required": [
        "type",
        "source"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "responses"
          ],
          "description": "The type of run data source. Always `responses`.",
          "default": "responses"
        },
        "input_messages": {
          "oneOf": [
            {
              "$ref": "#/$defs/OpenAI.CreateEvalResponsesRunDataSourceInputMessagesTemplate"
            },
            {
              "$ref": "#/$defs/OpenAI.CreateEvalResponsesRunDataSourceInputMessagesItemReference"
            }
          ],
          "description": "Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie, `item.input_trajectory`), or a template with variable references to the `item` namespace."
        },
        "sampling_params": {
          "$ref": "#/$defs/AzureResponsesSamplingParams"
        },
        "model": {
          "type": "string",
          "description": "The name of the model to use for generating completions (e.g. \"o3-mini\")."
        },
        "source": {
          "oneOf": [
            {
              "$ref": "#/$defs/OpenAI.EvalJsonlFileContentSource"
            },
            {
              "$ref": "#/$defs/OpenAI.EvalJsonlFileIdSource"
            },
            {
              "$ref": "#/$defs/OpenAI.EvalResponsesSource"
            }
          ],
          "description": "Determines what populates the `item` namespace in this run's data source."
        }
      },
      "description": "A ResponsesRunDataSource object describing a model sampling configuration.",
      "title": "ResponsesRunDataSource",
      "x-oaiMeta": {
        "name": "The completions data source object used to configure an individual run",
        "group": "eval runs"
      }
    },
    "OpenAI.CreateEvalResponsesRunDataSourceInputMessagesItemReference": {
      "type": "object",
      "required": [
        "type",
        "item_reference"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "item_reference"
          ]
        },
        "item_reference": {
          "type": "string"
        }
      }
    },
    "OpenAI.CreateEvalResponsesRunDataSourceInputMessagesTemplate": {
      "type": "object",
      "required": [
        "type",
        "template"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "template"
          ]
        },
        "template": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  }
                },
                "required": [
                  "role",
                  "content"
                ]
              },
              {
                "$ref": "#/$defs/OpenAI.EvalItem"
              }
            ]
          }
        }
      }
    },
    "OpenAI.CreateEvalResponsesRunDataSourceSamplingParams": {
      "type": "object",
      "properties": {
        "reasoning_effort": {
          "allOf": [
            {
              "$ref": "#/$defs/OpenAI.ReasoningEffort"
            }
          ],
          "description": "Controls the level of reasoning effort applied during generation."
        },
        "temperature": {
          "type": "number",
          "description": "A higher temperature increases randomness in the outputs.",
          "default": 1
        },
        "top_p": {
          "type": "number",
          "description": "An alternative to temperature for nucleus sampling; 1.0 includes all tokens.",
          "default": 1
        },
        "seed": {
          "type": "integer",
          "description": "A seed value initializes the randomness during sampling.",
          "default": 42
        },
        "tools": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OpenAI.Tool"
          }
        },
        "text": {
          "$ref": "#/$defs/OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText"
        }
      }
    },
    "OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText": {
      "type": "object",
      "properties": {
        "format": {
          "$ref": "#/$defs/OpenAI.TextResponseFormatConfiguration"
        }
      }
    },
    "OpenAI.EasyInputMessage": {
      "type": "object",
      "required": [
        "role",
        "content",
        "type"
      ],
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "assistant",
            "system",
            "developer"
          ],
          "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n  `developer`."
        },
        "content": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/OpenAI.InputMessageContentList"
            }
          ],
          "description": "Text, image, or audio input to the model, used to generate a response.\n  Can also contain previous assistant responses."
        },
        "phase": {
          "anyOf": [
            {
              "$ref": "#/$defs/OpenAI.MessagePhase"
            },
            {
              "type": "null"
            }
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "message"
          ],
          "description": "The type of the message input. Always `message`.",
          "x-stainless-const": true
        },
        "status": {
          "type": "string",
          "enum": [
            "in_progress",
            "completed",
            "incomplete"
          ],
          "description": "The status of item. One of `in_progress`, `completed`, or\n  `incomplete`. Populated when items are returned via API."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/OpenAI.InputItem"
        }
      ],
      "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.",
      "title": "Input message"
    },
    "OpenAI.EvalApiError": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      },
      "description": "An object representing an error response from the Eval API.",
      "title": "EvalApiError",
      "x-oaiMeta": {
        "name": "The API error object",
        "group": "evals"
      }
    },
    "OpenAI.EvalItem": {
      "type": "object",
      "required": [
        "role",
        "content"
      ],
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "assistant",
            "system",
            "developer"
          ],
          "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n  `developer`."
        },
        "content": {
          "$ref": "#/$defs/OpenAI.EvalItemContent"
        },
        "type": {
          "type": "string",
          "enum": [
            "message"
          ],
          "description": "The type of the message input. Always `message`.",
          "x-stainless-const": true
        }
      },
      "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.",
      "title": "Eval message object"
    },
    "OpenAI.EvalItemContent": {
      "oneOf": [
        {
          "$ref": "#/$defs/OpenAI.EvalItemContentItem"
        },
        {
          "$ref": "#/$defs/OpenAI.EvalItemContentArray"
        }
      ],
      "description": "Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.",
      "title": "Eval content"
    },
    "OpenAI.EvalItemContentArray": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenAI.EvalItemContentItem"
      },
      "description": "A list of inputs, each of which may be either an input text, output text, input\nimage, or input audio object.",
      "title": "An array of Input text, Output text, Input image, and Input audio"
    },
    "OpenAI.EvalItemContentItem": {
      "oneOf": [
        {
          "$ref": "#/$defs/OpenAI.EvalItemContentText"
        },
        {
          "$ref": "#/$defs/OpenAI.EvalItemContentItemObject"
        }
      ],
      "description": "A single content item: input text, output text, input image, or input audio.",
      "title": "Eval content item"
    },
    "OpenAI.EvalItemContentItemObject": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/OpenAI.EvalItemContentItemObjectType"
        }
      },
      "description": "A single content item: input text, output text, input image, or input audio.",
      "title": "Eval content item"
    },
    "OpenAI.EvalItemContentItemObjectType": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "enum": [
            "input_text",
            "output_text",
            "input_image",
            "input_audio"
          ]
        }
      ]
    },
    "OpenAI.EvalItemContentText": {
      "type": "string",
      "description": "A text input to the model.",
      "title": "Text input"
    },
    "OpenAI.EvalJsonlFileContentSource": {
      "type": "object",
      "required": [
        "type",
        "content"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "file_content"
          ],
          "description": "The type of jsonl source. Always `file_content`.",
          "x-stainless-const": true,
          "default": "file_content"
        },
        "content": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OpenAI.EvalJsonlFileContentSourceContent"
          },
          "description": "The content of the jsonl file."
        }
      },
      "title": "EvalJsonlFileContentSource"
    },
    "OpenAI.EvalJsonlFileContentSourceContent": {
      "type": "object",
      "required": [
        "item"
      ],
      "properties": {
        "item": {
          "type": "object",
          "unevaluatedProperties": {}
        },
        "sample": {
          "type": "object",
          "unevaluatedProperties": {}
        }
      }
    },
    "OpenAI.EvalJsonlFileIdSource": {
      "type": "object",
      "required": [
        "type",
        "id"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "file_id"
          ],
          "description": "The type of jsonl source. Always `file_id`.",
          "x-stainless-const": true,
          "default": "file_id"
        },
        "id": {
          "type": "string",
          "description": "The identifier of the file."
        }
      },
      "title": "EvalJsonlFileIdSource"
    },
    "OpenAI.EvalResponsesSource": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "responses"
          ],
          "description": "The type of run data source. Always `responses`."
        },
        "metadata": {
          "anyOf": [
            {
              "type": "object",
              "unevaluatedProperties": {}
            },
            {
              "type": "null"
            }
          ]
        },
        "model": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "instructions_search": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_after": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_before": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "reasoning_effort": {
          "anyOf": [
            {
              "$ref": "#/$defs/OpenAI.ReasoningEffort"
            },
            {
              "type": "null"
            }
          ]
        },
        "temperature": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "top_p": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "users": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "tools": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "description": "A EvalResponsesSource object describing a run data source configuration.",
      "title": "EvalResponsesSource",
      "x-oaiMeta": {
        "name": "The run data source object used to configure an individual run",
        "group": "eval runs"
      }
    },
    "OpenAI.EvalRunPerModelUsage": {
      "type": "object",
      "required": [
        "model_name",
        "invocation_count",
        "prompt_tokens",
        "completion_tokens",
        "total_tokens",
        "cached_tokens"
      ],
      "properties": {
        "model_name": {
          "type": "string"
        },
        "invocation_count": {
          "type": "integer"
        },
        "prompt_tokens": {
          "type": "integer"
        },
        "completion_tokens": {
          "type": "integer"
        },
        "total_tokens": {
          "type": "integer"
        },
        "cached_tokens": {
          "type": "integer"
        }
      }
    },
    "OpenAI.EvalRunPerTestingCriteriaResults": {
      "type": "object",
      "required": [
        "testing_criteria",
        "passed",
        "failed"
      ],
      "properties": {
        "testing_criteria": {
          "type": "string"
        },
        "passed": {
          "type": "integer"
        },
        "failed": {
          "type": "integer"
        }
      }
    },
    "OpenAI.EvalRunResultCounts": {
      "type": "object",
      "required": [
        "total",
        "errored",
        "failed",
        "passed"
      ],
      "properties": {
        "total": {
          "type": "integer"
        },
        "errored": {
          "type": "integer"
        },
        "failed": {
          "type": "integer"
        },
        "passed": {
          "type": "integer"
        }
      }
    },
    "OpenAI.EvalStoredCompletionsSource": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "stored_completions"
          ],
          "description": "The type of source. Always `stored_completions`.",
          "x-stainless-const": true,
          "default": "stored_completions"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/OpenAI.Metadata"
            },
            {
              "type": "null"
            }
          ]
        },
        "model": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_after": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_before": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "description": "A StoredCompletionsRunDataSource configuration describing a set of filters",
      "title": "StoredCompletionsRunDataSource",
      "x-oaiMeta": {
        "name": "The stored completions data source object used to configure an individual run",
        "group": "eval runs"
      }
    },
    "OpenAI.FunctionObject": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "description": {
          "type": "string",
          "description": "A description of what the function does, used by the model to choose when and how to call the function."
        },
        "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."
        },
        "parameters": {
          "$ref": "#/$defs/OpenAI.FunctionParameters"
        },
        "strict": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "OpenAI.FunctionParameters": {
      "type": "object",
      "unevaluatedProperties": {},
      "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.\nOmitting `parameters` defines a function with an empty parameter list."
    },
    "OpenAI.InputContent": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/OpenAI.InputContentType"
        }
      }
    },
    "OpenAI.InputContentType": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "enum": [
            "input_text",
            "input_image",
            "input_file"
          ]
        }
      ]
    },
    "OpenAI.InputItem": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/OpenAI.InputItemType"
        }
      },
      "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."
    },
    "OpenAI.InputItemType": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "enum": [
            "message",
            "output_message",
            "file_search_call",
            "computer_call",
            "computer_call_output",
            "web_search_call",
            "function_call",
            "function_call_output",
            "tool_search_call",
            "tool_search_output",
            "reasoning",
            "compaction",
            "image_generation_call",
            "code_interpreter_call",
            "local_shell_call",
            "local_shell_call_output",
            "shell_call",
            "shell_call_output",
            "apply_patch_call",
            "apply_patch_call_output",
            "mcp_list_tools",
            "mcp_approval_request",
            "mcp_approval_response",
            "mcp_call",
            "custom_tool_call_output",
            "custom_tool_call",
            "item_reference",
            "tool_approval_response"
          ]
        }
      ]
    },
    "OpenAI.InputMessageContentList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenAI.InputContent"
      },
      "description": "A list of one or many input items to the model, containing different content\ntypes.",
      "title": "Input item content list"
    },
    "OpenAI.MessagePhase": {
      "type": "string",
      "enum": [
        "commentary",
        "final_answer"
      ],
      "description": "Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`).\nFor models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend\nphase on all assistant messages — dropping it can degrade performance. Not used for user messages."
    },
    "OpenAI.Metadata": {
      "type": "object",
      "unevaluatedProperties": {
        "type": "string"
      },
      "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.\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.",
      "x-oaiTypeLabel": "map"
    },
    "OpenAI.ReasoningEffort": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "none",
            "minimal",
            "low",
            "medium",
            "high",
            "xhigh"
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Constrains effort on reasoning for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n- `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.\n- All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.\n- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.\n- `xhigh` is supported for all models after `gpt-5.1-codex-max`."
    },
    "OpenAI.ResponseFormatJsonObject": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "json_object"
          ],
          "description": "The type of response format being defined. Always `json_object`.",
          "x-stainless-const": true
        }
      },
      "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.",
      "title": "JSON object"
    },
    "OpenAI.ResponseFormatJsonSchema": {
      "type": "object",
      "required": [
        "type",
        "json_schema"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "json_schema"
          ],
          "description": "The type of response format being defined. Always `json_schema`.",
          "x-stainless-const": true
        },
        "json_schema": {
          "allOf": [
            {
              "$ref": "#/$defs/OpenAI.ResponseFormatJsonSchemaJsonSchema"
            }
          ],
          "description": "Structured Outputs configuration options, including a JSON Schema.",
          "title": "JSON schema"
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/OpenAI.CreateChatCompletionRequestResponseFormat"
        }
      ],
      "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).",
      "title": "JSON schema"
    },
    "OpenAI.ResponseFormatJsonSchemaJsonSchema": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "schema": {
          "$ref": "#/$defs/OpenAI.ResponseFormatJsonSchemaSchema"
        },
        "strict": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "OpenAI.ResponseFormatJsonSchemaSchema": {
      "type": "object",
      "unevaluatedProperties": {},
      "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).",
      "title": "JSON schema"
    },
    "OpenAI.ResponseFormatText": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "text"
          ],
          "description": "The type of response format being defined. Always `text`.",
          "x-stainless-const": true
        }
      },
      "description": "Default response format. Used to generate text responses.",
      "title": "Text"
    },
    "OpenAI.TextResponseFormatConfiguration": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/OpenAI.TextResponseFormatConfigurationType"
        }
      },
      "description": "An object specifying the format that the model must output.\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).\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n*Not recommended for gpt-4o and newer models:**\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."
    },
    "OpenAI.TextResponseFormatConfigurationType": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "enum": [
            "text",
            "json_schema",
            "json_object"
          ]
        }
      ]
    },
    "OpenAI.Tool": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/OpenAI.ToolType"
        }
      },
      "description": "A tool that can be used to generate a response."
    },
    "OpenAI.ToolType": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "enum": [
            "function",
            "file_search",
            "computer",
            "computer_use_preview",
            "web_search",
            "mcp",
            "code_interpreter",
            "image_generation",
            "local_shell",
            "shell",
            "custom",
            "namespace",
            "tool_search",
            "web_search_preview",
            "apply_patch"
          ]
        }
      ]
    }
  }
}