{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/car-gene-com/json-schema/car-gene-com-agent-questions-response-schema.json",
  "title": "AgentQuestionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/car-gene-com-admin-agent-questions-api-openapi.yml#/components/schemas/AgentQuestionsResponse",
  "properties": {
    "days": {
      "type": "integer",
      "title": "Days"
    },
    "last_asked_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Asked At"
    },
    "questions": {
      "type": "integer",
      "title": "Questions"
    },
    "conversations": {
      "type": "integer",
      "title": "Conversations"
    },
    "unresearched": {
      "type": "integer",
      "title": "Unresearched"
    },
    "cost_usd": {
      "type": "number",
      "title": "Cost Usd"
    },
    "daily": {
      "items": {
        "$ref": "#/$defs/AgentQuestionDay"
      },
      "type": "array",
      "title": "Daily"
    },
    "tools": {
      "items": {
        "$ref": "#/$defs/AgentQuestionTool"
      },
      "type": "array",
      "title": "Tools"
    },
    "pages": {
      "items": {
        "$ref": "#/$defs/AgentQuestionPage"
      },
      "type": "array",
      "title": "Pages"
    },
    "demand": {
      "items": {
        "$ref": "#/$defs/AgentDemand"
      },
      "type": "array",
      "title": "Demand"
    },
    "unresearched_questions": {
      "items": {
        "$ref": "#/$defs/AgentQuestion"
      },
      "type": "array",
      "title": "Unresearched Questions"
    },
    "recent": {
      "items": {
        "$ref": "#/$defs/AgentQuestion"
      },
      "type": "array",
      "title": "Recent"
    }
  },
  "type": "object",
  "required": [
    "days",
    "questions",
    "conversations",
    "unresearched",
    "cost_usd",
    "daily",
    "tools",
    "pages",
    "demand",
    "unresearched_questions",
    "recent"
  ],
  "$defs": {
    "AgentDemand": {
      "properties": {
        "tool": {
          "type": "string",
          "title": "Tool"
        },
        "arguments": {
          "type": "string",
          "title": "Arguments"
        },
        "times": {
          "type": "integer",
          "title": "Times"
        },
        "empty": {
          "type": "integer",
          "title": "Empty"
        }
      },
      "type": "object",
      "required": [
        "tool",
        "arguments",
        "times",
        "empty"
      ],
      "title": "AgentDemand",
      "description": "求められたもの: tool と引数の組 (車種・施術・地域など) と、聞かれた回数"
    },
    "AgentQuestion": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "asked_at": {
          "type": "string",
          "format": "date-time",
          "title": "Asked At"
        },
        "question": {
          "type": "string",
          "title": "Question"
        },
        "page_path": {
          "type": "string",
          "title": "Page Path"
        },
        "conversation_id": {
          "type": "string",
          "title": "Conversation Id"
        },
        "answer": {
          "type": "string",
          "title": "Answer"
        },
        "tools": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Tools"
        },
        "outcome": {
          "type": "string",
          "title": "Outcome"
        },
        "duration_ms": {
          "type": "integer",
          "title": "Duration Ms"
        }
      },
      "type": "object",
      "required": [
        "id",
        "asked_at",
        "question",
        "page_path",
        "conversation_id",
        "answer",
        "tools",
        "outcome",
        "duration_ms"
      ],
      "title": "AgentQuestion"
    },
    "AgentQuestionDay": {
      "properties": {
        "date": {
          "type": "string",
          "format": "date",
          "title": "Date"
        },
        "answered": {
          "type": "integer",
          "title": "Answered"
        },
        "unresearched": {
          "type": "integer",
          "title": "Unresearched"
        },
        "failed": {
          "type": "integer",
          "title": "Failed"
        }
      },
      "type": "object",
      "required": [
        "date",
        "answered",
        "unresearched",
        "failed"
      ],
      "title": "AgentQuestionDay",
      "description": "日 (JST) ごとの質問の数。答えの結果で分ける"
    },
    "AgentQuestionPage": {
      "properties": {
        "page_path": {
          "type": "string",
          "title": "Page Path"
        },
        "questions": {
          "type": "integer",
          "title": "Questions"
        },
        "unresearched": {
          "type": "integer",
          "title": "Unresearched"
        }
      },
      "type": "object",
      "required": [
        "page_path",
        "questions",
        "unresearched"
      ],
      "title": "AgentQuestionPage"
    },
    "AgentQuestionTool": {
      "properties": {
        "tool": {
          "type": "string",
          "title": "Tool"
        },
        "questions": {
          "type": "integer",
          "title": "Questions"
        }
      },
      "type": "object",
      "required": [
        "tool",
        "questions"
      ],
      "title": "AgentQuestionTool",
      "description": "使った tool (何の話題かの目安) ごとの質問の数"
    }
  }
}