---
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:
      - google-genai-sdk/1.47.0 gl-go/go1.26.0
    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 in Florence, Italy**\n\nOkay, so the user wants the weather for \"Florence, Italy.\" That's straightforward; my processing path leads directly to `weather.get_weather`. This is a clear case for that particular function. It takes a `location` argument, and that's easy enough. I'll just set the `location` parameter to \"Florence, Italy.\" Done! Ready to execute.\n",
                  "thought": true
                },
                {
                  "functionCall": {
                    "name": "weather",
                    "args": {
                      "location": "Florence, Italy"
                    }
                  },
                  "thoughtSignature": "CpwCAb4+9vsnDPVKCBbr2tnMUnEAJFGNMneg95rjCSOs6HV/dxMzyPDGxbqSkXe22liMoinB/fkfQFE9JI121uEeAjCBPYluDcHAuoOR6z3WdK+9x4gLfjsjieoOSGE+x9KkM0iml+XX+RP42tuBsOEn5AQsvr3iUQ/rdo1hanDOSdT0RfNyWmwYdGNAHPFsehZN3FAEuMCKEPS5bVsh6rGMpccdFYLHy9hnLIg0WZFZwSwhmGNSXuBUc6YK71TtMRxe19WuRbrXA4Na2ig9pBWIcOtYwaeTRcYmaZoh5agdiG9G4tWZCQ1Kbxsg1FZ8jXXrlPefL2jwtgDcidWKt3BQ3XvGm1db0I+H08+LOZa6ITpOd0qtIc4Pc2T/EmE="
                }
              ],
              "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": "gP-dacn4HJCDz7IP58yLgAc"
      }
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 2.659325375s
- 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+9vsnDPVKCBbr2tnMUnEAJFGNMneg95rjCSOs6HV/dxMzyPDGxbqSkXe22liMoinB/fkfQFE9JI121uEeAjCBPYluDcHAuoOR6z3WdK+9x4gLfjsjieoOSGE+x9KkM0iml+XX+RP42tuBsOEn5AQsvr3iUQ/rdo1hanDOSdT0RfNyWmwYdGNAHPFsehZN3FAEuMCKEPS5bVsh6rGMpccdFYLHy9hnLIg0WZFZwSwhmGNSXuBUc6YK71TtMRxe19WuRbrXA4Na2ig9pBWIcOtYwaeTRcYmaZoh5agdiG9G4tWZCQ1Kbxsg1FZ8jXXrlPefL2jwtgDcidWKt3BQ3XvGm1db0I+H08+LOZa6ITpOd0qtIc4Pc2T/EmE="}],"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:
      - google-genai-sdk/1.47.0 gl-go/go1.26.0
    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": "It's 40 C in Florence, Italy. \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": "gf-daYz0NaDVz7IP_-SygAI"
      }
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 1.360388541s
