{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aifu-asia/json-schema/aifu-asia-chat-response-schema.json",
  "title": "ChatResponse",
  "description": "Response from the chat endpoint.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bazaar-openapi.json#/components/schemas/ChatResponse",
  "properties": {
    "message": {
      "type": "string",
      "title": "Message"
    },
    "conversation_id": {
      "type": "string",
      "title": "Conversation Id"
    },
    "agent_used": {
      "type": "string",
      "title": "Agent Used"
    },
    "memories_created": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Memories Created",
      "default": []
    },
    "tokens_used": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tokens Used"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "title": "Timestamp"
    }
  },
  "type": "object",
  "required": [
    "message",
    "conversation_id",
    "agent_used",
    "timestamp"
  ]
}