Baseten · Schema

ResponseFormatJson

JSON schema response format for structured outputs.

AIMLInferenceDeploymentMLOpsOpenAI CompatibleAnthropic CompatibleTruss

Properties

Name Type Description
type string The response format type, always `json_schema`.
json_schema object The JSON schema definition.
View JSON Schema on GitHub

JSON Schema

baseten-responseformatjson-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ResponseFormatJson",
  "title": "ResponseFormatJson",
  "additionalProperties": false,
  "properties": {
    "type": {
      "const": "json_schema",
      "title": "Type",
      "type": "string",
      "description": "The response format type, always `json_schema`."
    },
    "json_schema": {
      "$ref": "#/components/schemas/JsonSchema",
      "description": "The JSON schema definition."
    }
  },
  "required": [
    "type",
    "json_schema"
  ],
  "type": "object",
  "description": "JSON schema response format for structured outputs."
}