---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 817
    host: generativelanguage.googleapis.com
    body: |
      {"contents":[{"parts":[{"text":"Generate information about 'The Lord of the Rings' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954)."}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000,"responseJsonSchema":{"properties":{"author":{"properties":{"name":{"description":"Author's name","type":"string"},"nationality":{"description":"Author's nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"responseMimeType":"application/json"}}
    form:
      alt:
      - sse
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
      - google-genai-sdk/1.49.0 gl-go/go1.26.1
    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-3-pro-preview:streamGenerateContent?alt=sse
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"{\\\"author\\\":{\\\"name\\\":\\\"J.R.R. Tolkien\\\",\\\"nationality\\\":\\\"British\\\"},\\\"genres\\\":[\\\"Fantasy\\\",\\\"Adventure\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 38,\"candidatesTokenCount\": 23,\"totalTokenCount\": 665,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 38}],\"thoughtsTokenCount\": 604},\"modelVersion\": \"gemini-3.1-pro-preview\",\"responseId\": \"8gCzaajlH53Uz7IPmdH08Q4\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"\\\"],\\\"published_year\\\":1954,\\\"title\\\":\\\"The Lord of the Rings\\\"}\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 38,\"candidatesTokenCount\": 41,\"totalTokenCount\": 683,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 38}],\"thoughtsTokenCount\": 604},\"modelVersion\": \"gemini-3.1-pro-preview\",\"responseId\": \"8gCzaajlH53Uz7IPmdH08Q4\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"\",\"thoughtSignature\": \"EsEVCr4VAb4+9vtRsHjsRF6VkqmwbVZYeS/3TzB5K5EP6pdyYAntuGaHWn/vpNC3Zzrw3Cv6XRcDMTU92dQWcSTuTOrDhzyww4HJ89QpaDxI9bk1TlEfMgEedoHOtuzAZiKdUcNRVx1Hga2wzyuRvaBJ1TdZ3Xpev/msr3r+wjuWuMha+VlvV/oPmNsZgKTMiLBbsZua4tvH5WJfhC2/oDpE3RzVf6uGzTEfyHTLpvlTGXKojVqbbDqjeOUkCX96Nqovtk50SeD4OX7YaVVapYFk06kVj2KwxCsjn+3Yyjr87g+9CBsuYU585RrqoNMx7fSPnymaYaJpF1KXvsu6P0APVLLKHkBlnYX98q02FI/pL41PgZHhlJW22dUVs5CCHKHBJabRSreQDyOj8uFpB3FulEvGcCjlJZUqm00wYCPgoAeEehg/C6bHexCu8lsJH0IiII2M/zQ8QKBbTmVnk/7a0Gk9Vw1uY1HIgqWR6KAhukuG2WB8vq4zGePx5hIt4MVt/Lz66MdKJA7W1CJfNXMyNd1JeLN12XHIYO1eeYV9U1gftwWg6wnJv8N9G+qGnXFjuZphQfkEzV/eqY6lYeiFz2+e4ULpd3DexvnD6dIddlSD95sKtXOHA7RZJA3ZbaHfmU/O/W+OVyR/SkIyOSimOmW+1fcjDJBwrfTY95fynvej70FqCsUkyzXBDhb37kFahOiXs+W9VEebIRmYaQ9xgdSqc/EROFG5TzedPxDqHCetSZ+aiI8UipXIthYhkRDsUWtH1T9x0iXrIDeBtBbAWkuHKHqqAllinxDHAXa61I1X7R4GbcUPOZS00H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nuCu0ZXFGRikFB5qiaPxgHbspisIcf+Gr4qiW6ClGqf5Z6TjvlZwb3HrKK/I9/iOxqm9//kg5er737RV0HeTJqgqyCbP4gXE9VpLxjprq+ntZW69EHo6El2TEXofdK/ksHndIX2EHXL272niKLaPgNcXOSuj8avq0htUS6Wa44VtpSmW9HRmmK71soripKH6+tEHdAooVxuGnIf6tsid1d449Bn3jfNtDJkKoaRTOtlCStJOMEWcbkTfK/+aSc8BwIaFNYtdrixes8e5w4BlW4GrMRUTbizHGVsSSyL31mrY4W7OPF+4kZ6x9FpFpoaRCyM5z45B9FFcTcsz7Q7xuPe0jdrLdFUGtW/oAWo9kMlwnK+uvsODx53tnqOQHhWIT9iCDLP+qlbqcHngG9V3Kjx4JFKNlhWG6yC9OiYVU68/coYnSmS+2LadKAKeEhB4RI6Wai5aBALysoX81vcbjMgNKL5sUsbM6alyyEI/PqlOrpNSiunZWxC5nfXzaXcgFKTfq20bzRSAcznIPnK/zzsw6meuw1xhtVC2maoHr84rtTvMCdzT1sXGOPaArrfhESjOkjLubL3StinwL954lNwpZ5IrM8vZt4iNXl0sLMSZFkpdxvI6+nbC6G0eEvj40qnz+jE5a61yDduCP6aerhxPs6lhLsjk=\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 38,\"candidatesTokenCount\": 41,\"totalTokenCount\": 683,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 38}],\"thoughtsTokenCount\": 604},\"modelVersion\": \"gemini-3.1-pro-preview\",\"responseId\": \"8gCzaajlH53Uz7IPmdH08Q4\"}\r\n\r\n"
    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 7.504291167s
