Perplexity · Schema

InputContentPart

Properties

Name Type Description
image_url string
text string
type string
View JSON Schema on GitHub

JSON Schema

perplexity-inputcontentpart-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/InputContentPart",
  "title": "InputContentPart",
  "properties": {
    "image_url": {
      "maxLength": 2048,
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "type": {
      "enum": [
        "input_text",
        "input_image"
      ],
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}