PostHog · Schema

LLMPrompt

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
id string
name string Unique prompt name using letters, numbers, hyphens, and underscores only.
prompt object Prompt payload as JSON or string data.
version integer
created_by object
created_at string
updated_at string
deleted boolean
is_latest boolean
latest_version integer
version_count integer
first_version_created_at string
outline array
View JSON Schema on GitHub

JSON Schema

posthog-llmprompt-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LLMPrompt",
  "title": "LLMPrompt",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Unique prompt name using letters, numbers, hyphens, and underscores only.",
      "maxLength": 255
    },
    "prompt": {
      "description": "Prompt payload as JSON or string data."
    },
    "version": {
      "type": "integer",
      "readOnly": true
    },
    "created_by": {
      "allOf": [
        {
          "$ref": "#/components/schemas/UserBasic"
        }
      ],
      "readOnly": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "deleted": {
      "type": "boolean",
      "readOnly": true
    },
    "is_latest": {
      "type": "boolean",
      "readOnly": true
    },
    "latest_version": {
      "type": "integer",
      "readOnly": true
    },
    "version_count": {
      "type": "integer",
      "readOnly": true
    },
    "first_version_created_at": {
      "type": "string",
      "readOnly": true
    },
    "outline": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LLMPromptOutlineEntry"
      },
      "readOnly": true
    }
  },
  "required": [
    "created_at",
    "created_by",
    "deleted",
    "first_version_created_at",
    "id",
    "is_latest",
    "latest_version",
    "name",
    "outline",
    "prompt",
    "updated_at",
    "version",
    "version_count"
  ]
}