{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpmt-com/json-schema/agentpmt-com-admin-chat-completion-request-schema.json",
  "title": "AdminChatCompletionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpmt-com-chat-api-openapi.yml#/components/schemas/AdminChatCompletionRequest",
  "properties": {
    "message": {
      "type": "string",
      "maxLength": 10000,
      "title": "Message",
      "default": ""
    },
    "attachments": {
      "items": {
        "$ref": "#/$defs/ChatAttachmentPayload"
      },
      "type": "array",
      "title": "Attachments"
    },
    "session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Id"
    },
    "budget_id": {
      "type": "string",
      "minLength": 1,
      "title": "Budget Id"
    },
    "context": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Context"
    },
    "init": {
      "type": "boolean",
      "title": "Init",
      "default": false
    },
    "instance_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Instance Id"
    },
    "instance_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Instance Metadata"
    },
    "model_visible_context": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Visible Context"
    },
    "model_override": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Override"
    },
    "system_prompt_override": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "System Prompt Override"
    },
    "temperature": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Temperature"
    }
  },
  "type": "object",
  "required": [
    "budget_id"
  ],
  "$defs": {
    "ChatAttachmentPayload": {
      "properties": {
        "file_id": {
          "type": "string",
          "maxLength": 128,
          "minLength": 1,
          "title": "File Id"
        },
        "filename": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1,
          "title": "Filename"
        },
        "content_type": {
          "type": "string",
          "maxLength": 120,
          "minLength": 1,
          "title": "Content Type"
        },
        "size_bytes": {
          "type": "integer",
          "minimum": 1.0,
          "title": "Size Bytes"
        },
        "preview_kind": {
          "type": "string",
          "enum": [
            "image",
            "video",
            "file"
          ],
          "title": "Preview Kind"
        }
      },
      "type": "object",
      "required": [
        "file_id",
        "filename",
        "content_type",
        "size_bytes",
        "preview_kind"
      ],
      "title": "ChatAttachmentPayload"
    }
  }
}