Perplexity · Schema

InputMessage

Properties

Name Type Description
content object
role string
type string
View JSON Schema on GitHub

JSON Schema

perplexity-inputmessage-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/InputMessage",
  "title": "InputMessage",
  "properties": {
    "content": {
      "$ref": "#/components/schemas/InputContent"
    },
    "role": {
      "enum": [
        "user",
        "assistant",
        "system",
        "developer"
      ],
      "type": "string"
    },
    "type": {
      "enum": [
        "message"
      ],
      "type": "string"
    }
  },
  "required": [
    "type",
    "role",
    "content"
  ],
  "type": "object"
}