---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 550
    host: generativelanguage.googleapis.com
    body: |
      {"contents":[{"parts":[{"text":"What's the weather in Florence, Italy?"}],"role":"user"}],"generationConfig":{"thinkingConfig":{"includeThoughts":true,"thinkingBudget":128}},"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://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: |
      {
        "candidates": [
          {
            "content": {
              "parts": [
                {
                  "text": "**Analyzing the Weather Query**\n\nOkay, so the user needs the weather for Florence, Italy. Simple enough. My initial assessment is that the `weather` tool is the right one to use here – that's the obvious call. The critical thing now is to format the request correctly. I need to make sure the `location` parameter is explicitly set to \"Florence, Italy.\" I'm mentally checking that the phrasing is precise and unambiguous. Now I need to actually execute that call to the `weather` tool. Time to get this user the information they need.\n",
                  "thought": true
                },
                {
                  "functionCall": {
                    "name": "weather",
                    "args": {
                      "location": "Florence, Italy"
                    }
                  },
                  "thoughtSignature": "CpQCAb4+9vsbZAixhGYxpv51LxQIXKkJ+wpEeroKwwT6flW1iLgNdkBBOXX3t0H7yY9uz1YQc/so1trK7GBhsYR0TAaVbP95Jg3a1D/XMGdR5hUvISOXptRjgpO7ieKQW4k9jpEe9+f1OrZTYKA8CZisCmn3xWBLBh+DrUJSP2rT521soXu/d7KG0aA7LIw+Bz61786v/8Ih7YWukxvIC/nli1aTivHN3Pw3pnNW5d35/5OSMA0rXlYf/ioz9+Y/jM6t1kD6HJCz6RFg2+Sck8wNNhCcL6+3dVWqnl1O8CbyT8RYL7ZFCGNWu1dpmuosLcEIvYk4zKRteCer9WaZ6CDIE4M1jcYd87H1veEsLqtV55Fyv/MY"
                }
              ],
              "role": "model"
            },
            "finishReason": "STOP",
            "index": 0,
            "finishMessage": "Model generated function call(s)."
          }
        ],
        "usageMetadata": {
          "promptTokenCount": 54,
          "candidatesTokenCount": 15,
          "totalTokenCount": 123,
          "promptTokensDetails": [
            {
              "modality": "TEXT",
              "tokenCount": 54
            }
          ],
          "thoughtsTokenCount": 54
        },
        "modelVersion": "gemini-2.5-flash",
        "responseId": "zACzaYXlFezjz7IPy5DMqQI"
      }
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 1.841646833s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1158
    host: generativelanguage.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":"CpQCAb4+9vsbZAixhGYxpv51LxQIXKkJ+wpEeroKwwT6flW1iLgNdkBBOXX3t0H7yY9uz1YQc/so1trK7GBhsYR0TAaVbP95Jg3a1D/XMGdR5hUvISOXptRjgpO7ieKQW4k9jpEe9+f1OrZTYKA8CZisCmn3xWBLBh+DrUJSP2rT521soXu/d7KG0aA7LIw+Bz61786v/8Ih7YWukxvIC/nli1aTivHN3Pw3pnNW5d35/5OSMA0rXlYf/ioz9+Y/jM6t1kD6HJCz6RFg2+Sck8wNNhCcL6+3dVWqnl1O8CbyT8RYL7ZFCGNWu1dpmuosLcEIvYk4zKRteCer9WaZ6CDIE4M1jcYd87H1veEsLqtV55Fyv/MY"}],"role":"model"},{"parts":[{"functionResponse":{"id":"1","name":"weather","response":{"result":"40 C"}}}],"role":"user"}],"generationConfig":{"thinkingConfig":{"includeThoughts":true,"thinkingBudget":128}},"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://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: |
      {
        "candidates": [
          {
            "content": {
              "parts": [
                {
                  "text": "The weather in Florence, Italy is 40 C."
                }
              ],
              "role": "model"
            },
            "finishReason": "STOP",
            "index": 0
          }
        ],
        "usageMetadata": {
          "promptTokenCount": 84,
          "candidatesTokenCount": 12,
          "totalTokenCount": 96,
          "promptTokensDetails": [
            {
              "modality": "TEXT",
              "tokenCount": 84
            }
          ]
        },
        "modelVersion": "gemini-2.5-flash",
        "responseId": "zgCzaa2gDKPlz7IPwOnE8QE"
      }
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 816.051125ms
