{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dialogbrain-com/json-schema/dialogbrain-com-thread-summary-response-schema.json",
  "title": "ThreadSummaryResponse",
  "description": "Response model for thread summary endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dialogbrain-com-agent-api-openapi.yml#/components/schemas/ThreadSummaryResponse",
  "properties": {
    "thread_id": {
      "type": "integer",
      "title": "Thread Id"
    },
    "summary_text": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Summary Text"
    },
    "message_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Message Count"
    },
    "last_summary_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Summary At"
    },
    "model_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Name"
    },
    "tokens_used": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tokens Used"
    },
    "exists": {
      "type": "boolean",
      "title": "Exists",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "thread_id"
  ]
}