thinking.yaml

  1---
  2version: 2
  3interactions:
  4- id: 0
  5  request:
  6    proto: HTTP/1.1
  7    proto_major: 1
  8    proto_minor: 1
  9    content_length: 550
 10    host: generativelanguage.googleapis.com
 11    body: |
 12      {"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"}}]}]}
 13    headers:
 14      Content-Type:
 15      - application/json
 16      User-Agent:
 17      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
 18      - google-genai-sdk/1.49.0 gl-go/go1.26.1
 19    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
 20    method: POST
 21  response:
 22    proto: HTTP/2.0
 23    proto_major: 2
 24    proto_minor: 0
 25    content_length: -1
 26    uncompressed: true
 27    body: |
 28      {
 29        "candidates": [
 30          {
 31            "content": {
 32              "parts": [
 33                {
 34                  "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",
 35                  "thought": true
 36                },
 37                {
 38                  "functionCall": {
 39                    "name": "weather",
 40                    "args": {
 41                      "location": "Florence, Italy"
 42                    }
 43                  },
 44                  "thoughtSignature": "CpQCAb4+9vsbZAixhGYxpv51LxQIXKkJ+wpEeroKwwT6flW1iLgNdkBBOXX3t0H7yY9uz1YQc/so1trK7GBhsYR0TAaVbP95Jg3a1D/XMGdR5hUvISOXptRjgpO7ieKQW4k9jpEe9+f1OrZTYKA8CZisCmn3xWBLBh+DrUJSP2rT521soXu/d7KG0aA7LIw+Bz61786v/8Ih7YWukxvIC/nli1aTivHN3Pw3pnNW5d35/5OSMA0rXlYf/ioz9+Y/jM6t1kD6HJCz6RFg2+Sck8wNNhCcL6+3dVWqnl1O8CbyT8RYL7ZFCGNWu1dpmuosLcEIvYk4zKRteCer9WaZ6CDIE4M1jcYd87H1veEsLqtV55Fyv/MY"
 45                }
 46              ],
 47              "role": "model"
 48            },
 49            "finishReason": "STOP",
 50            "index": 0,
 51            "finishMessage": "Model generated function call(s)."
 52          }
 53        ],
 54        "usageMetadata": {
 55          "promptTokenCount": 54,
 56          "candidatesTokenCount": 15,
 57          "totalTokenCount": 123,
 58          "promptTokensDetails": [
 59            {
 60              "modality": "TEXT",
 61              "tokenCount": 54
 62            }
 63          ],
 64          "thoughtsTokenCount": 54
 65        },
 66        "modelVersion": "gemini-2.5-flash",
 67        "responseId": "zACzaYXlFezjz7IPy5DMqQI"
 68      }
 69    headers:
 70      Content-Type:
 71      - application/json; charset=UTF-8
 72    status: 200 OK
 73    code: 200
 74    duration: 1.841646833s
 75- id: 1
 76  request:
 77    proto: HTTP/1.1
 78    proto_major: 1
 79    proto_minor: 1
 80    content_length: 1158
 81    host: generativelanguage.googleapis.com
 82    body: |
 83      {"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"}}]}]}
 84    headers:
 85      Content-Type:
 86      - application/json
 87      User-Agent:
 88      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
 89      - google-genai-sdk/1.49.0 gl-go/go1.26.1
 90    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
 91    method: POST
 92  response:
 93    proto: HTTP/2.0
 94    proto_major: 2
 95    proto_minor: 0
 96    content_length: -1
 97    uncompressed: true
 98    body: |
 99      {
100        "candidates": [
101          {
102            "content": {
103              "parts": [
104                {
105                  "text": "The weather in Florence, Italy is 40 C."
106                }
107              ],
108              "role": "model"
109            },
110            "finishReason": "STOP",
111            "index": 0
112          }
113        ],
114        "usageMetadata": {
115          "promptTokenCount": 84,
116          "candidatesTokenCount": 12,
117          "totalTokenCount": 96,
118          "promptTokensDetails": [
119            {
120              "modality": "TEXT",
121              "tokenCount": 84
122            }
123          ]
124        },
125        "modelVersion": "gemini-2.5-flash",
126        "responseId": "zgCzaa2gDKPlz7IPwOnE8QE"
127      }
128    headers:
129      Content-Type:
130      - application/json; charset=UTF-8
131    status: 200 OK
132    code: 200
133    duration: 816.051125ms