local log = {
  groundingMetadata = {
    groundingChunks = {
      {
        web = {
          title = "google.dev",
          uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAKFwjpJrkkmXeb5ov8Gl0h43Gu5CFGq6Z40zZSa6gL8I7IQpXwS8_bISybrF_y7cEM4QJEapy1cQN2AKF6hcQ3mcDsNOZfqNpfqZDgGSYA0e77f4E6Z_uhR_kCh",
        },
      },
      {
        web = {
          title = "github.com",
          uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqALoo5kKsM6ylCAiKn4UZNJI9oDjmEfT48pK7zNqHv0JFoBLw4csryJOUSGnbpbSWF8EOuXUYnrbEkC0F2WIhixG8sKDgeeZgw0use1P26kotWldL6BC2CspC3oOVPQaTw==",
        },
      },
    },
    groundingSupports = {
      {
        groundingChunkIndices = { 0 },
        segment = {
          endIndex = 323,
          startIndex = 240,
          text = "The main page for the Gemini API documentation is:\nhttps://ai.google.dev/gemini-api",
        },
      },
      {
        groundingChunkIndices = { 1 },
        segment = {
          endIndex = 563,
          startIndex = 434,
          text = "The Gemini API Cookbook on GitHub also provides practical examples and guides for using various API features, including tool use.",
        },
      },
    },
    searchEntryPoint = {
      renderedContent = '<style>\n.container {\n  align-items: center;\n  border-radius: 8px;\n  display: flex;\n  font-family: Google Sans, Roboto, sans-serif;\n  font-size: 14px;\n  line-height: 20px;\n  padding: 8px 12px;\n}\n.chip {\n  display: inline-block;\n  border: solid 1px;\n  border-radius: 16px;\n  min-width: 14px;\n  padding: 5px 16px;\n  text-align: center;\n  user-select: none;\n  margin: 0 8px;\n  -webkit-tap-highlight-color: transparent;\n}\n.carousel {\n  overflow: auto;\n  scrollbar-width: none;\n  white-space: nowrap;\n  margin-right: -12px;\n}\n.headline {\n  display: flex;\n  margin-right: 4px;\n}\n.gradient-container {\n  position: relative;\n}\n.gradient {\n  position: absolute;\n  transform: translate(3px, -9px);\n  height: 36px;\n  width: 9px;\n}\n@media (prefers-color-scheme: light) {\n  .container {\n    background-color: #fafafa;\n    box-shadow: 0 0 0 1px #0000000f;\n  }\n  .headline-label {\n    color: #1f1f1f;\n  }\n  .chip {\n    background-color: #ffffff;\n    border-color: #d2d2d2;\n    color: #5e5e5e;\n    text-decoration: none;\n  }\n  .chip:hover {\n    background-color: #f2f2f2;\n  }\n  .chip:focus {\n    background-color: #f2f2f2;\n  }\n  .chip:active {\n    background-color: #d8d8d8;\n    border-color: #b6b6b6;\n  }\n  .logo-dark {\n    display: none;\n  }\n  .gradient {\n    background: linear-gradient(90deg, #fafafa 15%, #fafafa00 100%);\n  }\n}\n@media (prefers-color-scheme: dark) {\n  .container {\n    background-color: #1f1f1f;\n    box-shadow: 0 0 0 1px #ffffff26;\n  }\n  .headline-label {\n    color: #fff;\n  }\n  .chip {\n    background-color: #2c2c2c;\n    border-color: #3c4043;\n    color: #fff;\n    text-decoration: none;\n  }\n  .chip:hover {\n    background-color: #353536;\n  }\n  .chip:focus {\n    background-color: #353536;\n  }\n  .chip:active {\n    background-color: #464849;\n    border-color: #53575b;\n  }\n  .logo-light {\n    display: none;\n  }\n  .gradient {\n    background: linear-gradient(90deg, #1f1f1f 15%, #1f1f1f00 100%);\n  }\n}\n</style>\n<div class="container">\n  <div class="headline">\n    <svg class="logo-light" width="18" height="18" viewBox="9 9 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">\n      <path fill-rule="evenodd" clip-rule="evenodd" d="M42.8622 27.0064C42.8622 25.7839 42.7525 24.6084 42.5487 23.4799H26.3109V30.1568H35.5897C35.1821 32.3041 33.9596 34.1222 32.1258 35.3448V39.6864H37.7213C40.9814 36.677 42.8622 32.2571 42.8622 27.0064V27.0064Z" fill="#4285F4"/>\n      <path fill-rule="evenodd" clip-rule="evenodd" d="M26.3109 43.8555C30.9659 43.8555 34.8687 42.3195 37.7213 39.6863L32.1258 35.3447C30.5898 36.3792 28.6306 37.0061 26.3109 37.0061C21.8282 37.0061 18.0195 33.9811 16.6559 29.906H10.9194V34.3573C13.7563 39.9841 19.5712 43.8555 26.3109 43.8555V43.8555Z" fill="#34A853"/>\n      <path fill-rule="evenodd" clip-rule="evenodd" d="M16.6559 29.8904C16.3111 28.8559 16.1074 27.7588 16.1074 26.6146C16.1074 25.4704 16.3111 24.3733 16.6559 23.3388V18.8875H10.9194C9.74388 21.2072 9.06992 23.8247 9.06992 26.6146C9.06992 29.4045 9.74388 32.022 10.9194 34.3417L15.3864 30.8621L16.6559 29.8904V29.8904Z" fill="#FBBC05"/>\n      <path fill-rule="evenodd" clip-rule="evenodd" d="M26.3109 16.2386C28.85 16.2386 31.107 17.1164 32.9095 18.8091L37.8466 13.8719C34.853 11.082 30.9659 9.3736 26.3109 9.3736C19.5712 9.3736 13.7563 13.245 10.9194 18.8875L16.6559 23.3388C18.0195 19.2636 21.8282 16.2386 26.3109 16.2386V16.2386Z" fill="#EA4335"/>\n    </svg>\n    <svg class="logo-dark" width="18" height="18" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">\n      <circle cx="24" cy="23" fill="#FFF" r="22"/>\n      <path d="M33.76 34.26c2.75-2.56 4.49-6.37 4.49-11.26 0-.89-.08-1.84-.29-3H24.01v5.99h8.03c-.4 2.02-1.5 3.56-3.07 4.56v.75l3.91 2.97h.88z" fill="#4285F4"/>\n      <path d="M15.58 25.77A8.845 8.845 0 0 0 24 31.86c1.92 0 3.62-.46 4.97-1.31l4.79 3.71C31.14 36.7 27.65 38 24 38c-5.93 0-11.01-3.4-13.45-8.36l.17-1.01 4.06-2.85h.8z" fill="#34A853"/>\n      <path d="M15.59 20.21a8.864 8.864 0 0 0 0 5.58l-5.03 3.86c-.98-2-1.53-4.25-1.53-6.64 0-2.39.55-4.64 1.53-6.64l1-.22 3.81 2.98.22 1.08z" fill="#FBBC05"/>\n      <path d="M24 14.14c2.11 0 4.02.75 5.52 1.98l4.36-4.36C31.22 9.43 27.81 8 24 8c-5.93 0-11.01 3.4-13.45 8.36l5.03 3.85A8.86 8.86 0 0 1 24 14.14z" fill="#EA4335"/>\n    </svg>\n    <div class="gradient-container"><div class="gradient"></div></div>\n  </div>\n  <div class="carousel">\n    <a class="chip" href="https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAKRRb3I-E6JqI7z1EdDRtxqX7HuIkXra15RjtXQd33K3YL7QtFlnDn2hUdRZQENbMmnrYuX661BIn-FO64QsjhHn7xexPwd93my47JerJz4fWAjIWLtOn5lJg8z3g-_W661mpjuCY-1BEV0hU479FdlfMyVuCyBBP3ToNvcJHwXCUKTz0WNSHjZ71rScdaAYM7c8hRZ7MD7D-y5tw==">Gemini tool use documentation</a>\n    <a class="chip" href="https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAIt3vx7mGSjGfUl8uVB-4X7sIc-govoHY3avzzq5AfVzLIE7FoMMC5AwDz6l78krYii-eWj-dZN02EsYjcf4R4-j1e9v4aKIZ6HAxKYlbd-YeSK2F2ooKY_pAiJccdComb50d_SICOxuzuwjKCsjOCctMVWZ2reOyHSFqndsufj6yt8BXCLe0EYkSQ6p6f_iLe0FBerDfi4CGas36XBj4yjew==">Google AI Gemini API tool use guide</a>\n  </div>\n</div>\n',
    },
    webSearchQueries = { "Gemini tool use documentation", "Google AI Gemini API tool use guide" },
  },
}

local metadata2 = {
  groundingChunks = {
    {
      web = {
        title = "anthropic.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqALl9M1EqfFn56gqxLjzzQZN9_zLdVqunTJX3o-cFpjbBYYogv1KKiwx1NNhwfpvfYo30583qgQgjkpjL373ITejdMAxMhOKOquQXt6OmombaBpzRQMKKjO8_FwDxlBLrhCvHBRT6HsNNQFpAkkTDPrtPM9UcwKwtO2eonG_b1pTOJ9dJL0=",
      },
    },
    {
      web = {
        title = "aihubmix.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAKiiwNI2T6mXti2Fsb_isKMu8vyJ1cVMvX5nVGMdfOVYGYNmhXAs_aOKhlajT-fHhnoUQaLpTxZUm8-_UwjS0lbLewRxF0LEmmGGkRlHgjGBebb-QFVSHteLu1mfbKdsLx6EzqWL-4GyXg=",
      },
    },
    {
      web = {
        title = "simonwillison.net",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqALJ71FzvtPl-HrKJrLMHMoAwkWW8OeiH__gacmsc8huyq0J5i3MZ4PJ0k0459X1H2zCRA9pKNNbQguy_tddLTYOCOjJhRdICefJvslVhUgSN_nA6tICGTLmm0wQK2YupzMYtLDCwx9OaCqkQvgySyXp3UiWtm9_KgQZ6GU=",
      },
    },
    {
      web = {
        title = "github.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAL-SQlGukiFPX3WlFto7nHNFPu1FtlWJqM0k0pSf3Tq9PIuL6uhyI90zz3XGizyt4AGAQHa5bZQFn5ODGt6RnwprTVRVsvvSgfJHjGcMNe6rLW-WhKGx6l_ameVnblpmzd31Lrcj2XYP9eFZ3IzOP4Ymv0FsGU=",
      },
    },
    {
      web = {
        title = "github.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqALUFiqy0Z8_xUj8F8vpjvz18tblCpDoX2Ek10G5IN8RjnMuvS4FhK5RRXQJtlrSzsNa5X4PrcBUsT_S8sPKuPTCj8hYztM2xu_NuWmXhnSntuurvPD-oG5wlVJj7LhcmsdRx8SbttYvAA==",
      },
    },
    {
      web = {
        title = "claudeaihub.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAKFzUuubAolC9nFsMVYlQ3WQ2nwy_Rqvvg8RphEEW7kVtfQrSJtRfixMvUgEcjQ5JxHmFoTxif4bTgNbBjwwuCrodh8oweUXlBiH945LsPHL5pzJGabXiEFwMYcXIrXBzglCWibhA==",
      },
    },
    {
      web = {
        title = "team-gpt.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAL1ZKMcNKEVXhdflJyLCCI0tZRmh_iYqTA_kABIAXDY1GCQevhHvtHCXwi0kU5oOGj1QhOMaIxLiaSaq5ga7LINX4wApoJkLOu4Mz4x_bpyYqR66cmr8jKyqGJcSNf-",
      },
    },
    {
      web = {
        title = "techpoint.africa",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAIfKgHxplYohSATEkDxWZ2NlfZxEu1hEsAEpIiyi7M4erp6Y56M5yrI0TqujvBSCfl3cMnWmW7GY0Ea4piUGXN4jxtEBfCozuJiCvz06lpbzZ5l0OPsHESY8ZBqMNe_HYPHqIu9YZyQuh7dkLPp2g==",
      },
    },
    {
      web = {
        title = "type.ai",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqALqoFUUzdjkwL70GLPU17sCa0hoDweDOw8Rz8t-dhTgpDph6sQDhiU7pGV6ppNVQRX6Hu8vt-aBTGLu_myQVnEpgBb690ETL5Z2fEV3jiE3Io0xY4qbzbfnPpSuVCrtsOazpuykLdmJKd_H",
      },
    },
    {
      web = {
        title = "originality.ai",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAI-RFTP2_UmCsA94aE2Qp5lfwXAe838z7v1ltR1kOmOj3smy2LsYDn8xySS6ziC2RHnn6yOPXrqNtpr1WSwxgtCoVWMdGkWPbD7iS9fOGhqLRszHGsbGlitTOzss7Hzew0_ow==",
      },
    },
    {
      web = {
        title = "minu.co.nz",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAJ94yMKxSSP8zAMDNOSPwVbw_DZvQAVTvrnYa_mBoN8n2TNXC3E7yvrHZb_TgMmW4P-khFBxJSR6JCZfbAVptkazjur7-DZdGNcp7xu1-tDS0Es8GKQCO2U5f26LzN3D-z_PVXljThLOPC4M50Oi5bnvDBTRn-UuaKSwki02zcS9EoHiKZNwmwyMP0kY4ID7b0JuL4uVw8=",
      },
    },
    {
      web = {
        title = "alitu.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAImrbGjC_p2gvlk4QmnP5nEn3AjDDILJW0NWGkH9DyQAMoBFsiPjTj6_dzj-yMGp80hWz_LPvMe4mpCYR5ohIfSuXzWWoK6j7u5ky5ioCQfK0n8yFvKGa7RnocON7FlL-MPyxRc1mW_TW3enundCRN-fk18ixjaPr59e2A=",
      },
    },
    {
      web = {
        title = "idratherbewriting.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAIRF4Y79J0FnOWN4YKABTcFbkVH-tDxpJddWh8j4dqGB11ZOtn7GdXlUX1wkNXiUIBD5wIEjprgXKt_yfVMV_ZmLwHICs_ru6XzxIIDHGZ8MY6nrZT2WXnk_fNOccJXbEaPIKV3klOsR5Jj3shQAkebypUDXjg_79XosJyJyLSae-M4vKA=",
      },
    },
    {
      web = {
        title = "metastellar.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAIDIyVnEYw4nIMes1OQtaqVvnhPXzBFg7aYG412q1--hVVL4fiwnkCGNPGhztHX0d0sp6w22zDzAuOv-az9O5iN_WtlYwxLHdbdd6WBtOjfk5xVldJjfJJnTbob4i5Qepp26CCzrpFAvI8A9Rwn0ZxvEWUJ0ciSmslespFT4NhS2pkRmAzgNTsWols3c86IcKsQ4niSGo1-UTcZ2sbPfCR09xQCMw==",
      },
    },
    {
      web = {
        title = "metastellar.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAJVhQo64Of25wWeQ0ALHu1gLhxCQZmI__LzPOvck1c6f0g1HRdbVb_FyIeA53xKtRTlzCGKN5c8XznI1os41dyLvubZZ8t8lq2jzaq4FI9uVtkfQ-S4EHiJb7OQ0qQIuGno6kwXhNcCb9IAOA0uM925_WxI5O_orB2Ce79UFpR_CBRpfYiRk2TU36ZrK4LF48nf3V8_bxMUha1Wmgt0IAk0olQcd80zpk5ATQ==",
      },
    },
    {
      web = {
        title = "superlinear.eu",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqALnFf5xRXe5vC7f53NbSuelwnO0XTlSboOCT7yMg3ALRgAT7Y7uT__OJ3DQo2Wn_VkBcQdkvFic-BXjwZTRw-OeVdzm1EFTsQRmG2SrneD1fmj-l9kEsvSN1EDrscqUUbQvNqYv-6bGWfWmGSyCeSM95xzib_XxPCzMbX9B_c2E5l3B4tHtplyQhGZyqvWrKN4ZNmiJEgW_vtu6N8zCiz6PFEK1H_5V6tfPGkl0NA==",
      },
    },
    {
      web = {
        title = "anthropic.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqALW5FbDyTkkizlzebr1nd_qqb71_W7ZP3W4LbnfNpNowfd0hVWiEyX1ivadzNqfFDUkfQ3H2wgTSmPMsEsCZUMynQ3ntTINEsVxKv1NaHdqYE45k7x4DfzQl7yTZIdzZf5Ig6PW98Nj7E2z8HtgOX7lj7TeQRUSdA==",
      },
    },
    {
      web = {
        title = "reddit.com",
        uri = "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AWQVqAJxWixkeKruXFNDoNVxPtkvln1myJMXCs7pw8a64n3eRKiDifUgIrJzc77CB78tYPtam2zR2R9vWo9upUdJ6elsw25ayRIZEJhLzeFBv1MMMc6cX5TGMFx18PXPySOwQSGQjp4aGRCDbfMhZHGvvYJB7sFsGYDWTh7V6hh_QC0oxOtpNhWq1glJs_jztMFr-SRgkex8BQacGQ==",
      },
    },
  },
  groundingSupports = {
    {
      groundingChunkIndices = { 0, 1, 2 },
      segment = {
        endIndex = 444,
        startIndex = 345,
        text = "It details the tool's commands, such as `view`, `create`, `str_replace`, `insert`, and `undo_edit`.",
      },
    },
    {
      groundingChunkIndices = { 0, 2 },
      segment = {
        endIndex = 572,
        startIndex = 445,
        text = "*   The documentation highlights use cases like debugging code, refactoring code, generating documentation, and creating tests.",
      },
    },
    {
      groundingChunkIndices = { 0, 2 },
      segment = {
        endIndex = 688,
        startIndex = 573,
        text = "*   It also specifies that the text editor tool is currently available for Claude 3.5 Sonnet and Claude 3.7 Sonnet.",
      },
    },
    {
      groundingChunkIndices = { 1, 3, 4 },
      segment = {
        endIndex = 887,
        startIndex = 721,
        text = "*   Several articles and forum discussions explore the potential of Claude's tools, including the text editor, often in the context of AI agents and automating tasks.",
      },
    },
    {
      groundingChunkIndices = { 5, 6, 7 },
      segment = {
        endIndex = 1054,
        startIndex = 888,
        text = "*   Some users share their experiences using Claude for coding tasks and text editing, noting its ability to process long-form text and provide detailed explanations.",
      },
    },
    {
      groundingChunkIndices = { 8, 9, 10, 11, 12, 13, 14, 15 },
      segment = {
        endIndex = 1313,
        startIndex = 1055,
        text = "*   Articles discussing Claude's writing and editing capabilities generally mention its strength in generating high-quality, human-like text and its ability to assist with various writing tasks, including content creation, summarization, and refining drafts.",
      },
    },
    {
      groundingChunkIndices = { 16, 11, 12 },
      segment = {
        endIndex = 1627,
        startIndex = 1471,
        text = "*   One article specifically compares using Claude for book editing, highlighting its ability to analyze text and provide feedback on structure and grammar.",
      },
    },
  },
}
