---
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-pro:generateContent
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: |
      {
        "candidates": [
          {
            "content": {
              "parts": [
                {
                  "text": "**Weather Check in Florence**\n\nOkay, so the user wants the weather, specifically in Florence, Italy. That's straightforward; the input string \"Florence, Italy\" clearly indicates the desired location. We've got a `weather.get_weather` function that's perfectly suited for this, and it takes a `location` parameter. Piece of cake. All I need to do is map \"Florence, Italy\" to that `location` parameter. Done.\n",
                  "thought": true
                },
                {
                  "functionCall": {
                    "name": "weather",
                    "args": {
                      "location": "Florence, Italy"
                    }
                  },
                  "thoughtSignature": "CpwCAb4+9vvjWTfN/coHAtL6RNHuB/D9RcoYaEbOXifBzo42rnPBxgLXlfKKVlWjSujb7uS5VqrErCz1riiaQMDIWmUT6eO5hy397uPpmJTyuud7DY+yEa0wglfCTh+KNPlWvZlDfWGMAGhoI0sUcA1IwSGEmcLHyQ7xFZ30Ze1YxbNO+OGSyJn31RDaivuHWcBLBEPKDsHbJcHs9NJH+kIarQkNTSJAhGwNSPE6hXBtoFpGDrCfFKo7X1Psc3IaJeubv+h1Ox3FS4OErR/Q/sNj52+JUUbRWJ8G6aptVbvzNtHFZMMIeljaEMlxGiBKUiSNeudWDCoPII/q1NY/YwBExXWwxGET1pj0o0YV5vXTw81gkDiyqHrKaWAzkYg="
                }
              ],
              "role": "model"
            },
            "finishReason": "STOP",
            "index": 0,
            "finishMessage": "Model generated function call(s)."
          }
        ],
        "usageMetadata": {
          "promptTokenCount": 54,
          "candidatesTokenCount": 15,
          "totalTokenCount": 133,
          "promptTokensDetails": [
            {
              "modality": "TEXT",
              "tokenCount": 54
            }
          ],
          "thoughtsTokenCount": 64
        },
        "modelVersion": "gemini-2.5-pro",
        "responseId": "1ACzaaq1BaKDz7IPv92N6A8"
      }
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 3.139889041s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1170
    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":"CpwCAb4+9vvjWTfN/coHAtL6RNHuB/D9RcoYaEbOXifBzo42rnPBxgLXlfKKVlWjSujb7uS5VqrErCz1riiaQMDIWmUT6eO5hy397uPpmJTyuud7DY+yEa0wglfCTh+KNPlWvZlDfWGMAGhoI0sUcA1IwSGEmcLHyQ7xFZ30Ze1YxbNO+OGSyJn31RDaivuHWcBLBEPKDsHbJcHs9NJH+kIarQkNTSJAhGwNSPE6hXBtoFpGDrCfFKo7X1Psc3IaJeubv+h1Ox3FS4OErR/Q/sNj52+JUUbRWJ8G6aptVbvzNtHFZMMIeljaEMlxGiBKUiSNeudWDCoPII/q1NY/YwBExXWwxGET1pj0o0YV5vXTw81gkDiyqHrKaWAzkYg="}],"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-pro: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. \n"
                }
              ],
              "role": "model"
            },
            "finishReason": "STOP",
            "index": 0
          }
        ],
        "usageMetadata": {
          "promptTokenCount": 84,
          "candidatesTokenCount": 12,
          "totalTokenCount": 96,
          "promptTokensDetails": [
            {
              "modality": "TEXT",
              "tokenCount": 84
            }
          ]
        },
        "modelVersion": "gemini-2.5-pro",
        "responseId": "1gCzabW2FLznz7IP7YS00Ak"
      }
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 2.338408583s
