{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/h2o-ai/main/json-schema/h2o-ai-chat-session-schema.json",
  "title": "ChatSession",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/h2o-ai-documents-api-openapi.yml#/components/schemas/ChatSession",
  "required": [
    "id",
    "updated_at"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "collection_id": {
      "type": "string"
    },
    "collection_name": {
      "type": "string"
    },
    "prompt_template_id": {
      "type": "string"
    },
    "latest_message_content": {
      "type": "string"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "workspace": {
      "type": "string"
    },
    "username": {
      "type": "string",
      "description": "Username of the session owner."
    }
  }
}