{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/h2o-ai/main/json-schema/h2o-ai-ai-assistant-spec-schema.json",
  "title": "AiAssistantSpec",
  "description": "LLM-generated assistant configuration spec.",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/h2o-ai-ai-assistants-api-openapi.yml#/components/schemas/AiAssistantSpec",
  "required": [
    "name",
    "description",
    "system_prompt"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "system_prompt": {
      "type": "string"
    },
    "llm": {
      "type": "string"
    },
    "history_management": {
      "type": "string",
      "enum": [
        "compactification",
        "truncation",
        "semantic_retrieval"
      ]
    },
    "history_max_chars": {
      "type": "integer"
    },
    "history_recent_chars": {
      "type": "integer"
    },
    "history_retrieval_chars": {
      "type": "integer"
    },
    "notification_email": {
      "type": "string"
    },
    "allowed_tool_actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "allowed_trigger_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "default_wake_period": {
      "type": "integer"
    },
    "auto_memory_block": {
      "type": "boolean"
    },
    "auto_start": {
      "type": "boolean",
      "description": "Whether to auto-start the assistant after creation. Only true when user explicitly asks for it to be started/run/launched."
    }
  }
}