Perplexity · Schema

ResponseFormat

Specifies the desired output format for the model response

Properties

Name Type Description
json_schema object
type string The type of response format
View JSON Schema on GitHub

JSON Schema

perplexity-responseformat-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ResponseFormat",
  "title": "ResponseFormat",
  "description": "Specifies the desired output format for the model response",
  "properties": {
    "json_schema": {
      "$ref": "#/components/schemas/JSONSchemaFormat"
    },
    "type": {
      "description": "The type of response format",
      "enum": [
        "json_schema"
      ],
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}