{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/keirolabs/json-schema/keirolabs-post-api-v2-answer-response-schema.json",
  "title": "PostApiV2AnswerResponse",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/keirolabs-openapi-generated.yml#/components/schemas/PostApiV2AnswerResponse",
  "type": "object",
  "properties": {
    "answer": {
      "type": "string"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "snippet": {
            "type": "string"
          }
        }
      }
    },
    "stats": {
      "type": "object",
      "properties": {
        "sources_count": {
          "type": "integer"
        },
        "latency_ms": {
          "type": "integer"
        },
        "credits_used": {
          "type": "integer"
        },
        "attempt": {
          "type": "string"
        }
      }
    },
    "creditsRemaining": {
      "type": "integer"
    }
  }
}