---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 509
    host: us-east5-aiplatform.googleapis.com
    body: |
      {"contents":[{"parts":[{"text":"What's the weather in Florence,Italy?"}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000},"systemInstruction":{"parts":[{"text":"You are a helpful assistant"}],"role":"user"},"toolConfig":{"functionCallingConfig":{"mode":"AUTO"}},"tools":[{"functionDeclarations":[{"description":"Get weather information for a location","name":"weather","parameters":{"properties":{"location":{"description":"the city","type":"STRING"}},"required":["location"],"type":"OBJECT"}}]}]}
    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://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-pro:generateContent
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: |
      {
        "candidates": [
          {
            "content": {
              "role": "model",
              "parts": [
                {
                  "functionCall": {
                    "name": "weather",
                    "args": {
                      "location": "Florence, Italy"
                    }
                  },
                  "thoughtSignature": "CogEAY89a18AxcmSDT2p07Co1JRtGBB7Agd75Vj9UZkgbukirUDDeNDjpGrNB9hCvNnkXEp6Cmi1w/XoCg9ucdiWUcB3XBygzRsHEopx6+pLGO7QPFK8N+js2l+iH2YF6xjA9nTI7CAhtMS78tEdlMykkwe4tU6e1wyEDmRLYwema/Q9oaV6ziqkbYOKPix6IjZhgkJSz0rmwMXN1S1whHKC4Qd7IhOodVIp7TaNzLAxMAij6EkusUjLsCYMpuDm2NvdjlwQWsYjiZSYRDU5KNWuc6P+RgrozZj4n3bLp9g29QzPAd2qnJW8CjMsGBDVx0bTzfy2EdMkX5P0ZZre1EvkOyMTA64hDz1o4wChM6BcMKBMgs2z5Hl/yRN4eAjrC4NO/MM57kS1Lg836onZVfE5Te8vn9W0nv4M+o0NnF79xeeIXVdg9csNnfrhxlFFU300fgAk+EEQ4keVn/r4EdSsaUqdV/WUMr3GS2sbQZvP6PNJuOoc0lmLrJVpy6BEdlrofphYcFlOObgkUeYw6x9/u6zRke7PQbOiU/w2D41e0AIhrnItM3gvrQnFmjjJhj2J8aV+/MD7Vxc0OY+2DcJMhty3VUGgTvhUkTJ5gu65/waRYZcQI53hejjnmAjrmKPJzfbypYf8LLZGmNHbP88nXoEPxdL28k/2AmXq/hg7bIisyk2Q+POUhQ=="
                }
              ]
            },
            "finishReason": "STOP",
            "avgLogprobs": -0.87936477661132817
          }
        ],
        "usageMetadata": {
          "promptTokenCount": 28,
          "candidatesTokenCount": 5,
          "totalTokenCount": 150,
          "trafficType": "ON_DEMAND",
          "promptTokensDetails": [
            {
              "modality": "TEXT",
              "tokenCount": 28
            }
          ],
          "candidatesTokensDetails": [
            {
              "modality": "TEXT",
              "tokenCount": 5
            }
          ],
          "thoughtsTokenCount": 117
        },
        "modelVersion": "gemini-2.5-pro",
        "createTime": "2026-03-12T18:06:24.514092Z",
        "responseId": "oACzaaywH57V8eEPsJbfiAE"
      }
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 2.924632208s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1445
    host: us-east5-aiplatform.googleapis.com
    body: |
      {"contents":[{"parts":[{"text":"What's the weather in Florence,Italy?"}],"role":"user"},{"parts":[{"functionCall":{"args":{"location":"Florence, Italy"},"id":"1","name":"weather"},"thoughtSignature":"CogEAY89a18AxcmSDT2p07Co1JRtGBB7Agd75Vj9UZkgbukirUDDeNDjpGrNB9hCvNnkXEp6Cmi1w/XoCg9ucdiWUcB3XBygzRsHEopx6+pLGO7QPFK8N+js2l+iH2YF6xjA9nTI7CAhtMS78tEdlMykkwe4tU6e1wyEDmRLYwema/Q9oaV6ziqkbYOKPix6IjZhgkJSz0rmwMXN1S1whHKC4Qd7IhOodVIp7TaNzLAxMAij6EkusUjLsCYMpuDm2NvdjlwQWsYjiZSYRDU5KNWuc6P+RgrozZj4n3bLp9g29QzPAd2qnJW8CjMsGBDVx0bTzfy2EdMkX5P0ZZre1EvkOyMTA64hDz1o4wChM6BcMKBMgs2z5Hl/yRN4eAjrC4NO/MM57kS1Lg836onZVfE5Te8vn9W0nv4M+o0NnF79xeeIXVdg9csNnfrhxlFFU300fgAk+EEQ4keVn/r4EdSsaUqdV/WUMr3GS2sbQZvP6PNJuOoc0lmLrJVpy6BEdlrofphYcFlOObgkUeYw6x9/u6zRke7PQbOiU/w2D41e0AIhrnItM3gvrQnFmjjJhj2J8aV+/MD7Vxc0OY+2DcJMhty3VUGgTvhUkTJ5gu65/waRYZcQI53hejjnmAjrmKPJzfbypYf8LLZGmNHbP88nXoEPxdL28k/2AmXq/hg7bIisyk2Q+POUhQ=="}],"role":"model"},{"parts":[{"functionResponse":{"id":"1","name":"weather","response":{"result":"40 C"}}}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000},"systemInstruction":{"parts":[{"text":"You are a helpful assistant"}],"role":"user"},"toolConfig":{"functionCallingConfig":{"mode":"AUTO"}},"tools":[{"functionDeclarations":[{"description":"Get weather information for a location","name":"weather","parameters":{"properties":{"location":{"description":"the city","type":"STRING"}},"required":["location"],"type":"OBJECT"}}]}]}
    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://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-pro:generateContent
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: |
      {
        "candidates": [
          {
            "content": {
              "role": "model",
              "parts": [
                {
                  "text": "The weather in Florence, Italy is 40 degrees Celsius.\n"
                }
              ]
            },
            "finishReason": "STOP",
            "avgLogprobs": -0.14247493232999528
          }
        ],
        "usageMetadata": {
          "promptTokenCount": 155,
          "candidatesTokenCount": 14,
          "totalTokenCount": 169,
          "trafficType": "ON_DEMAND",
          "promptTokensDetails": [
            {
              "modality": "TEXT",
              "tokenCount": 155
            }
          ],
          "candidatesTokensDetails": [
            {
              "modality": "TEXT",
              "tokenCount": 14
            }
          ]
        },
        "modelVersion": "gemini-2.5-pro",
        "createTime": "2026-03-12T18:06:26.827845Z",
        "responseId": "ogCzacXDMoO18eEP8uOXaQ"
      }
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 1.36857775s
