{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/professionalaiagents-com/json-schema/professionalaiagents-com-public-model-response-out-schema.json",
  "title": "PublicModelResponseOut",
  "description": "One stored model response. text is a character window, not the whole panel.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seneca-research-openapi.json#/components/schemas/PublicModelResponseOut",
  "properties": {
    "object": {
      "type": "string",
      "const": "research.model_response",
      "title": "Object",
      "default": "research.model_response"
    },
    "model_id": {
      "type": "string",
      "title": "Model Id",
      "description": "Model id stored on this run. A retired model keeps this id."
    },
    "display_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Display Name"
    },
    "laboratory": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Laboratory"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "input_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Input Tokens"
    },
    "output_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Tokens"
    },
    "text": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Text",
      "description": "The requested character window of the original response. Null when no text is stored."
    },
    "text_characters": {
      "type": "integer",
      "title": "Text Characters",
      "description": "Full stored text length in characters."
    },
    "offset": {
      "type": "integer",
      "title": "Offset",
      "description": "Character offset of text within the stored response."
    },
    "returned_characters": {
      "type": "integer",
      "title": "Returned Characters"
    },
    "truncated": {
      "type": "boolean",
      "title": "Truncated",
      "description": "True when characters remain after this window. Raise offset to read the rest."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "model_id",
    "status",
    "text_characters",
    "offset",
    "returned_characters",
    "truncated"
  ]
}